analise-advpl
Extension of ADVPL code analysis.
Last updated a year ago by robsonrosilva .
ISC · Original npm · Tarball · package.json
$ cnpm install analise-advpl 
SYNC missed versions from official npm registry.

analise-advpl

Criação de modulo para validação de fontes ADVPL.

Install

npm install analise-advpl --save

Test

npm run test

Example usage in global scope

const fileSystem = require('file-system');
let validaAdvpl = require('analise-advpl');
let conteudo = fileSystem.readFileSync('c:\\arquivo.prw', 'latin1');

//o primeiro parâmetro é o padrão de comentários e o segundo a localização de mensagens
let objeto = new validaAdvpl.ValidaAdvpl([], 'ptb');
//define o nome do banco de dados ou owner
objeto.ownerDb = ['PROTHEUS'];
//define os códigos de empresas que irá validar na queryes
objeto.empresas = ['01'];
//efetua a validação do fonte
objeto.validacao(conteudo, 'COM ERRO');
let validaProjeto = require('../lib/validaProjeto');
let objeto = new validaProjeto.validaProjeto([]);

let comentario = [
  '/*//#########################################################################################',
  'Projeto\\ \\:',
  'Modulo\\ \\ \\:',
  'Fonte\\ \\ \\ \\:',
  'Objetivo\\:'
];

//seta variáveis
objeto.ownerDb = ['PROTHEUS'];
objeto.empresas = ['01'];
objeto.comentFontPad = comentario;

objeto.validaProjeto([
  'D:\\rogerio\\Dropbox\\Trabalho\\WORKSPACE\\POUPEX\\ADVPL\\protheus'
]);

Current Tags

  • 5.0.11                                ...           latest (4 months ago)

50 Versions

  • 5.0.11                                ...           4 months ago
  • 5.0.9                                ...           4 months ago
  • 5.0.8                                ...           4 months ago
  • 5.0.6                                ...           9 months ago
  • 5.0.5                                ...           a year ago
  • 5.0.4                                ...           a year ago
  • 5.0.3                                ...           a year ago
  • 5.0.2                                ...           a year ago
  • 5.0.1                                ...           a year ago
  • 5.0.0                                ...           a year ago
  • 4.0.6                                ...           a year ago
  • 4.0.5                                ...           a year ago
  • 4.0.4                                ...           a year ago
  • 4.0.3                                ...           a year ago
  • 4.0.2                                ...           a year ago
  • 4.0.1                                ...           a year ago
  • 4.0.0                                ...           a year ago
  • 3.0.2                                ...           a year ago
  • 3.0.1                                ...           a year ago
  • 3.0.0                                ...           a year ago
  • 2.0.14                                ...           a year ago
  • 2.0.13                                ...           a year ago
  • 2.0.12                                ...           a year ago
  • 2.0.11                                ...           a year ago
  • 2.0.10                                ...           a year ago
  • 2.0.9                                ...           2 years ago
  • 2.0.8                                ...           2 years ago
  • 2.0.7                                ...           2 years ago
  • 2.0.6                                ...           2 years ago
  • 2.0.5                                ...           2 years ago
  • 2.0.4                                ...           2 years ago
  • 2.0.3                                ...           2 years ago
  • 2.0.2                                ...           2 years ago
  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.2.0                                ...           2 years ago
  • 1.1.9                                ...           2 years ago
  • 1.1.8                                ...           2 years ago
  • 1.1.7                                ...           2 years ago
  • 1.1.6                                ...           2 years ago
  • 1.1.5                                ...           2 years ago
  • 1.1.4                                ...           2 years ago
  • 1.1.3                                ...           2 years ago
  • 1.1.2                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 0
Last Day 0
Last Week 1
Last Month 2
Dependencies (7)
Dev Dependencies (2)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |